﻿using Newtonsoft.Json;
namespace BLL
{
    public class AnswerToQue
    {
        public string UserID { get; set; }
        public int QuestionID { get; set; }
        public int QuizID { get; set; }
        public int OptionID { get; set; }

        public static string Serialize(AnswerToQue answerToQue)
        {
            var json = JsonConvert.SerializeObject(answerToQue);
            return json;
        }

        public static AnswerToQue DeSerialize(string json)
        {
            return JsonConvert.DeserializeObject<AnswerToQue>(json);
        }
    }

}
